package com.nervenets.web.controller.setting;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;

@Data
public class UploadParams implements Serializable {
    @ApiModelProperty(value = "base64Str", required = true)
    @NotNull(message = "base64Str必传")
    private String base64Str;
    @ApiModelProperty(value = "剪裁x轴")
    @PositiveOrZero(message = "x轴为0或大于0的正整数")
    private int x;
    @ApiModelProperty(value = "剪裁y轴")
    @PositiveOrZero(message = "y轴为0或大于0的正整数")
    private int y;
    @ApiModelProperty(value = "剪裁宽度")
    @PositiveOrZero(message = "宽度为0或大于0的正整数")
    private int w;
    @ApiModelProperty(value = "剪裁高度")
    @PositiveOrZero(message = "高度为0或大于0的正整数")
    private int h;
}
